#ifndef IMPORTFROMCSV_H
#define IMPORTFROMCSV_H

#include "sql.h"
#include <QWidget>
#include <QModelIndex>

namespace Ui {
class ImportFromcsv;
}

class ImportFromcsv : public QWidget
{
    Q_OBJECT

public:
    explicit ImportFromcsv(QWidget *parent = nullptr);
    ~ImportFromcsv();

    void tableDataShow(QList<EbookInfo> bookInfoList);

private slots:
    void tabelTooltip(QModelIndex index);

    void on_ptnConfirmImport_clicked();

    void on_ptnCancelImport_clicked();

signals:
    void sendImportData(QList<EbookInfo> importBookinfoList);

private:
    Ui::ImportFromcsv *ui;

    QList<EbookInfo> m_importBookinfo;
    QStringList tablewidgetTitle;
    int tablewidgetColumnCount;
};

#endif // IMPORTFROMCSV_H
